package com.note.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Admins {
    private Integer id;
    private String name;
    private String pwd;
    private int type;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    private String email;

    public Admins() {
    }

    public Admins(Integer id, String name, String pwd, int type, Date time, String email) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.type = type;
        this.time = time;
        this.email = email;
    }

    @Override
    public String toString() {
        return "Admins{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", type=" + type +
                ", time=" + time +
                ", email='" + email + '\'' +
                '}';
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
